package com.yupi.yuapicommon.model.dto.interfaceinfo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.yupi.yuapicommon.model.common.PageRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * 查询请求
 *
 * @author yupi
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel
public class InterfaceInfoQueryRequest extends PageRequest implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "接口名")
    private Long id;

    /**
     * 接口名
     */
    @ApiModelProperty(value = "接口名")
    private String name;

    /**
     * 接口描述
     */
    @ApiModelProperty(value = "接口描述")
    private String description;

    /**
     * 请求类型
     */
    @ApiModelProperty(value = "请求类型")
    private String method;

    /**
     * 接口地址
     */
    @ApiModelProperty(value = "接口地址")
    private String url;

    /**
     * 响应头
     */
    @ApiModelProperty(value = "响应头")
    private String responseHeader;

    /**
     * 消耗羊毛
     */
    @ApiModelProperty(value = "消耗羊毛")
    private Long woolUsed;

    /**
     * 接口状态 (0- 关闭 1- 开启)
     */
    @ApiModelProperty(value = "接口状态 (0- 关闭 1- 开启)")
    private Integer status;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private Long userId;

    /**
     * 是否展示
     */
    @ApiModelProperty(value = "是否展示")
    private Integer isShow;

    /**
     * 是否已经删除
     */
    @ApiModelProperty(value = "是否已经删除")
    @TableLogic
    private Integer isDelete;
}